#include"addr.h"

Addr::Addr() 
{
	bzero(&addr,sizeof(addr));
	addr.sin_port=htons(6666);
	addr.sin_family=AF_INET;
	addr.sin_addr.s_addr=htonl(INADDR_ANY);
}

	
Addr::Addr(int port)
	{
		assert(port>600);
		addr.sin_port=htons(port);
		addr.sin_family=AF_INET;
		addr.sin_addr.s_addr=htonl(INADDR_ANY);
	}


sockaddr_in *Addr::get_addr()
	{
		return &addr;
	}
